<template>
  <div class="order-container">
    <ItemView :item="item" v-for="(item, index) in orderList" :key="index" />
  </div>
</template>
<script setup>
import {ref,reactive} from "vue"
import ItemView from "./components/ItemView.vue";
import { useOrder } from "./use/useOrder"

const props = defineProps({
  type:String
})

const { orderList } = useOrder(props.type);


</script>
<style lang="less" scoped>
.order-container{
  margin-top: 5px;
}

</style>
